import Vue from 'vue'
import App from './App'
import './common/styles/index.less'
Vue.config.productionTip = false
App.mpType = 'app'
import Vuex from './vuex/index.js'
import Ajax from '../src/common/js/ajax.js'
Vue.use(Vuex)
Vue.use(Ajax)
const app = new Vue(App)
app.$mount()
// 设置页面title
Vue.mixin({
    onLoad() {
        this.$options.title && wx.setNavigationBarTitle({
            title: this.$options.title
        })
    }
})